package com.fzdy.product.entity;

import javax.persistence.*;
import java.util.Date;

@Entity
@Table(name = "t_controller")
public class Controller {
    private Integer id;
    private String controllerSn;
    private Date createDate;
    private String address;
    private String units;

    @Id
    @Column(name = "id")
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Basic
    @Column(name = "controller_sn")
    public String getControllerSn() {
        return controllerSn;
    }

    public void setControllerSn(String controllerSn) {
        this.controllerSn = controllerSn;
    }

    @Basic
    @Column(name = "create_date")
    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    @Basic
    @Column(name = "address")
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Basic
    @Column(name = "units")
    public String getUnits() {
        return units;
    }

    public void setUnits(String units) {
        this.units = units;
    }


}
